//
//  SEExamineRecordEyePressureCell.swift
//  SmartEyeForPatient
//
//  Created by QDSG on 2021/4/14.
//

import UIKit

struct SEExamineRecordEyePressureCellModel {
    var titleText: String = ""
    var valueText: String = ""
}

class SEExamineRecordEyePressureCell: UITableViewCell {

    override func awakeFromNib() {
        super.awakeFromNib()
        backgroundColor = .white
        contentView.backgroundColor = .white
    }

    func updateWithViewModel(_ viewModel: SEExamineRecordEyePressureCellModel) {
        titleLabel.text = viewModel.titleText
        valueLabel.text = viewModel.valueText
    }
    
    @IBOutlet private weak var titleLabel: UILabel!
    @IBOutlet private weak var valueLabel: UILabel!
    
    @IBOutlet private weak var containerView: UIView! {
        didSet {
            containerView.backgroundColor = .white
            containerView.layer.cornerRadius = 4
            containerView.layer.borderWidth = 1
            containerView.layer.borderColor = Asset.border.color.cgColor
            containerView.layer.masksToBounds = true
        }
    }
}
